package com.Service;


import com.pojo.Car;
import com.pojo.Record;
import com.pojo.User;

import java.math.BigDecimal;
import java.util.List;

public interface MenuService {
    public List<Car> getAllCar(User user);

    public Car getCarByid(User user, String id);

    public boolean addCar(Car car);

    public boolean updateCarById(String id, String key, BigDecimal value);

    public List<User> getAllUser();

    public List<Car> getSortCar(String choice, User user);

    public List<Car> getCarByType(String type, User user);

    public List<Car> getCarByBrand(String brand, User user);

    public Record rentCarById(String id, User user);

    public Record backCar(String id,BigDecimal price);

    public List<Record> getRecordsByUser(User user);
    public List<Record> getAllRecords();

    public List<Record> getRecordsByCar(Car car);

    public Record getRecordByid(String id);

    User getUserById(String id);
}